const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    port: 8080,
    host: '192.168.5.16',
    open: true,
    headers: {
      'Access-Control-Allow-Origin': '*',
    },
    proxy: {
      '/api': {
        target: 'http://192.168.5.16:3001/api/',
        changeOrigin: true,
        pathRewrite: {
          '^/api': ''
        },
      },
    },
  },
})
